package com.ruoyi.house_sale.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 付款方案对象 PaidScheme
 *
 * @author ruoyi
 * @date 2022-03-28
 */
public class PaidScheme extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long psid;

    /** 付款方案名称 */
    @Excel(name = "付款方案名称")
    private String psname;

    /** 项目编号（关联项目资料表主键） */
    @Excel(name = "项目编号", readConverterExp = "关=联项目资料表主键")
    private int projectid;

    /** 是否银行按揭（现金,银行） */
    @Excel(name = "是否银行按揭", readConverterExp = "现=金,银行")
    private String isbank;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pstime;

    /** 操作人(登录session值) */
    @Excel(name = "操作人(登录session值)")
    private String userid;

    /** 项目名称 */
    @Transient
    private String projectname;

    public String getProjectname() {
        return projectname;
    }

    public void setProjectname(String projectname) {
        this.projectname = projectname;
    }

    public void setPsid(Long psid)
    {
        this.psid = psid;
    }

    public Long getPsid()
    {
        return psid;
    }
    public void setPsname(String psname)
    {
        this.psname = psname;
    }

    public String getPsname()
    {
        return psname;
    }
    public void setProjectid(int projectid)
    {
        this.projectid = projectid;
    }

    public int getProjectid()
    {
        return projectid;
    }
    public void setIsbank(String isbank)
    {
        this.isbank = isbank;
    }

    public String getIsbank()
    {
        return isbank;
    }
    public void setPstime(Date pstime)
    {
        this.pstime = pstime;
    }

    public Date getPstime()
    {
        return pstime;
    }
    public void setUserid(String userid)
    {
        this.userid = userid;
    }

    public String getUserid()
    {
        return userid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("psid", getPsid())
                .append("psname", getPsname())
                .append("projectid", getProjectid())
                .append("isbank", getIsbank())
                .append("pstime", getPstime())
                .append("userid", getUserid())
                .append("projectname",getProjectname())
                .toString();
    }
}
